package com.groupbuying.settleproducer.connector;

import com.groupbuying.settleproducer.utils.apiresult.ApiResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @Author cuich
 * @Description 调用订单中心接口
 * @Date 2019/3/14 15:30
 **/
@Service
@FeignClient("bus-customer")
public interface CustomerFeign {

    @RequestMapping(value = "/getCustomer", method = RequestMethod.GET)
    ApiResult getCustomerInfo(@RequestParam("customerId") String customerId);
}
